import request from "./request";

// 全部订单
export const getAll = (params) => request.get('order/v1/list', { params })
// 待发货单
export const getDelivery = (params) => request.get('order/v1/list/1', { params })
// 发货
export const getDeliverySend = (params) => request.post('order/v1/send', params)
// 待收货单
export const getTakeDelivery = (params) => request.get('order/v1/list/2', { params })
// 确认收货
export const getConfirmReceipt = (params) => request.post(`order/v1/confirmReceipt/${params.serialNo}`)
// 待评价
export const getEvaluate = (params) => request.get('order/v1/list/3', { params })
// 订单评价
export const getEvaluate2 = (params) => request.post('order/v1/evaluate', params)
// 评价详情
export const getEvaluate3 = (params) => request.get(`order/v1/evaluateInfo/${params.serialNo}`, { params })
// 消息中心
export const getNewCenter = (params) => request.get('/api/message', { params })
// 消息中心详情
export const getNewCenterDetail = (params) => request.get(`api/message/${params.id}`, { params })
// 消息中心已读
export const getNewCenterDetailReaded = (params) => request.put(`api/message/updates`, params)
// 客户列表信息
export const getCust = (params) => request.get(`api/cust`, { params })
// 新增客户信息
export const getNewCust = (params) => request.post(`api/cust`, params)
// 获取客户视图
export const getCustView = (params) => request.post(`api/cust/${params.id}`, params)
// 获取客户信息详情
export const getCustData = (params) => request.get(`api/cust/${params.id}`, { params })
// 修改客户信息
export const getModifyCust = (params) => request.put(`api/cust`, params)
// 走访列表信息
export const getVisit = (params) => request.get(`api/visit`, { params })
// 新增走访信息
export const getNewVisit = (params) => request.post(`api/visit`, params)
// 个人中心用户信息展示
export const getPersonalCenter = (params) => request.get(`users/list`, { params })
// 个人中心用户信息详情
export const getPersonalCenterData = (params) => request.get(`users/info`, { params })
// 个人中心 版本信息
export const getPersonalCenterVersion = (params) => request.get(`users/version`, { params })
// 物流单列表
export const getLogisticsBill = (params) => request.get(`api/star`, { params })
// 物流单评价
export const getLogisticsSingle = (params) => request.put(`api/star`, params)
// 登录
export const getLogin = (params) => request.post('login', params)